package dancrawler.client;

import dancrawler.server.*;

/**
 * An object on the map
 */
public class GameObject {
    private String type = "";
    private int id;
    private int x, y;
    private boolean block = false;
    
 
    public GameObject(String type, int x, int y, boolean block)
    {
        this.block = block;
        this.x = x;
        this.y = y;
        this.type = type;
        if(type == null)
        {
            this.type = "";
        }
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }
    
    
    public GameObject(String type)
    {
        this.type = type;
    }
    
    public String getType()
    {
        return type;
    }
    public boolean collides()
    {
        return block;
    }
    public int getId()
    {
        return id;
    }
    
    public void setId(int id)
    {
        this.id = id;
    }
}
